/*    */ package com.jcrj.taglib;
/*    */ 
/*    */ import com.jcrj.service.UserService;
/*    */ import com.jcrj.util.AplicationUtil;
/*    */ import org.springframework.context.ApplicationContext;
/*    */ 
/*    */ public class PermissionTag
/*    */ {
/*    */   public static boolean hasPermission(String userId, String sessionUser)
/*    */   {
/* 10 */     UserService userService = (UserService)AplicationUtil.getContext().getBean("userService");
/*    */ 
/* 12 */     return userService.hasPermission(userId, sessionUser);
/*    */   }
/*    */ }